package com.test.dto;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.cs.framework.common.annotation.NotNull;
import com.cs.framework.jdbc.common.bo.PagingInfo;

@Entity
@Table(name = "user")
public class UserDto extends PagingInfo {

	private static final long serialVersionUID = 7166768355215735861L;

	@Id
	@NotNull("名称")
	private String name;

	@NotNull("年龄")
	private Integer age;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

}
